<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="Generator" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{if $page_title}{$page_title} - {/if}{if $show_site_titile eq 1}{function name='app_conf' value='SHOP_SEO_TITLE'} - {/if}{$site_info.SHOP_TITLE}</title>
<link rel="icon" href="favicon.ico" type="/image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="/image/x-icon" />
<meta name="keywords" content="{if $page_keyword}{$page_keyword}{/if}{$site_info.SHOP_KEYWORD}" />
<meta name="description" content="{if $page_description}{$page_description}{/if}{$site_info.SHOP_DESCRIPTION}" />
<?php
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/style.css";
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/weebox.css";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.bgiframe.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.weebox.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/jquery.pngfix.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/lazyload.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/op.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/script.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/op.js";
if(app_conf("APP_MSG_SENDER_OPEN")==1)
{
$this->_var['pagejs'][] = $this->_var['TMPL_REAL']."/js/msg_sender.js";
$this->_var['cpagejs'][] = $this->_var['TMPL_REAL']."/js/msg_sender.js";
}
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/main.css";
$this->_var['pagecss'][] = $this->_var['TMPL_REAL']."/css/user_login_reg.css";
?>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$pagecss"}" />

<script type="text/javascript">
var APP_ROOT = '{$APP_ROOT}';;
var LOADER_IMG = '{$TMPL}/images/lazy_loading.gif';
var ERROR_IMG = '{$TMPL}/images/image_err.gif';
var send_span = {function name="app_conf" v="SEND_SPAN"}000;
{if app_conf("APP_MSG_SENDER_OPEN") eq 1 && $DEAL_MSG_COUNT > 0}
var to_send_msg = true;
{else}
var to_send_msg = false;
{/if}
</script>
<script type="text/javascript" src="{$APP_ROOT}/public/runtime/app/lang.js"></script>
<script type="text/javascript" src="{function name="parse_script" v="$pagejs" c="$cpagejs"}"></script>
<style type="text/css">
	.user-lr-box-left .field .holder_tip{left: 180px;_left:-240px;top:0}
	.register_box .user-lr-box-left .field .f-input-tip{ _position:absolute;_left:-287px;}
	.logo a{ display:block;}

	.abc .form_err{
	 margin-top:-25px;
	}



</style>
</head>

<body class="register_body">
	<div class="head z100" id="j_head">
		<div class="head_cont" style="background:#fff">
			<div class="wrap constr clearfix">
				<div class="logo f_l">
					<a class="link" href="{$APP_ROOT}/">
						<?php
							$this->_var['logo_image'] = app_conf("SHOP_LOGO");
						?>
						{function name="load_page_png" v=$logo_image}
					</a>
				</div>
				<!--{if $MODULE_NAME == 'user'}-->
				<div class="f_yahei no-nav-text">{if $ACTION_NAME == 'login'}登录{elseif $ACTION_NAME eq 'register'}注册{/if}</div>
				<!--{/if}-->
			</div>
		</div>
		<p class="head_bg"></p>
	</div>
	<div class="blank20"></div>
	
	
		<div class="regstep">
            <ol class="ui-step ui-step-3">
                <li class="ui-step-start ui-step-done">
                    <div class="ui-step-line">-</div>
                    <div class="ui-step-icon">
                        <i class="iconfont"></i>
                        <i class="ui-step-number">1</i>
                        <span class="ui-step-text">填写账户信息</span>
                    </div>
                </li>
                <li class="ui-step-active">
                    <div class="ui-step-line">-</div>
                    <div class="ui-step-icon">
                        <i class="iconfont"></i>
                        <i class="ui-step-number">2</i>
                        <span class="ui-step-text">实名信息</span>
                    </div>
                </li>
                <li class="ui-step-end">
                    <div class="ui-step-line">-</div>
                    <div class="ui-step-icon">
                        <i class="iconfont"></i>
                        <i class="ui-step-number">3</i>
                        <span class="ui-step-text">注册成功</span>
                    </div>
                </li>
            </ol>
        </div>
	
	
	
	
	
	<div class="blank"></div>
	<div class="inc  wrap register_box">
		<div>
			
			<div class="inc_main clearfix bdd wb">
				<div class="user-lr-box-left f_l" style="width:590px">
					<form action="{url x="shop" r="user#do_re_name_id"}" method="post" id="re_name_and_id">
						
						<div class="field username pr">
							<div class="u_icon"></div>
							<label for="real_name"><span class="f_red">*</span>姓名</label>
							<span class="holder_tip ps" >输入真实姓名</span>
							<input type="text" class="f-input ipttxt" id="real_name" name="real_name" size="30">
							<span class="f-input-tip"></span> 
							<span class="hint"></span> 
							<input  name="re_user_id" style=" display:none;"  value="{$user_info.id}">
						</div>
						<div class="blank1"></div>
						
						<div class="field idno pr">
							<div class="u_icon"></div>
							<label for="idno"><span class="f_red">*</span>身份证号</label>
							<span class="holder_tip ps" >输入身份证</span>
							<input type="text" class="f-input ipttxt" id="idno" name="idno" size="30" onkeyup="idcheck(this);">
							<span class="f-input-tip"></span> 
							<span class="hint"></span> 
						</div>
						<div class="blank1"></div>
						
						<div class="field">
							<label style="margin-top: -9px;"><span class="red">*</span>{$LANG.USER_SEX}</label>
							<select name="sex">
								<option value="-1" {if $user_info.sex eq -1}selected="selected"{/if}>{$LANG.USER_SEX_NULL}</option>
								<option value="0" {if $user_info.sex eq 0}selected="selected"{/if}>{$LANG.USER_SEX_0}</option>
								<option value="1" {if $user_info.sex eq 1}selected="selected"{/if}>{$LANG.USER_SEX_1}</option>
							</select>
						</div>
						<div class="blank10"></div>
					
						<div class="field clearfix">
							<label style="margin-top: -9px;" for="settings-birthday"><span class="red">*</span>{$LANG.USER_BIRTHDAY}</label>
							<div class="f_l">
								<select name="byear">
									<option value="0">{$LANG.PLEASE_SELECT}</option>
									<?php for($i = date("Y") - 100 ;$i<=date("Y"); $i++){ ?>
									<option value="<?php echo $i; ?>" <?php if($i==$GLOBALS['user_info']['byear']){echo 'selected="selected"';} ?>><?php echo $i; ?></option>
									<?php
									}
								?>
								</select>
								{$LANG.SUPPLIER_YEAR}
								<select name="bmonth">
									<option value="0">{$LANG.PLEASE_SELECT}</option>
									<?php for($i = 1 ;$i<=12; $i++){ ?>
									<option value="<?php echo $i; ?>"  <?php if($i==$GLOBALS['user_info']['bmonth']){echo 'selected="selected"';} ?>><?php if($i<10):echo "0".$i;else: echo $i; endif; ?></option>
									<?php
									}
								?>
								</select>
								{$LANG.SUPPLIER_MON}
								<select name="bday">
									<option value="0">{$LANG.PLEASE_SELECT}</option>
									<?php for($i = 1 ;$i<=31; $i++){ ?>
									<option value="<?php echo $i; ?>" <?php if($i==$GLOBALS['user_info']['bday']){echo 'selected="selected"';} ?>><?php if($i<10):echo "0".$i;else: echo $i; endif; ?></option>
									<?php
									}
								?>
								</select>
								{$LANG.SUPPLIER_DAY}
							</div>
						</div>
						<div class="blank10"></div>
							<!-- 
						<div class="abc ">
							<input id="abc" name="abc" value="abc" style="display:none;">
							<span class="f-input-tip" style="width:138px !important; margin-left: 140px; display:table; "></span> 
							<span class="hint"></span> 
						</div>
							 -->
						<div class="blank1"></div>
						
						<div class="act">
							<input  style="  margin-top: 5px;" type="submit" class="reg-submit-btn" id="commit" name="commit" value="验证">				
						</div>
					</form>
				</div>
				<div class="user-lr-box-right f_r">
					
				</div>
			</div>		
			<div class="inc_foot"></div>
		</div>
	</div>



<script type="text/javascript">


jQuery(function(){
	
	$("form#re_name_and_id").submit(function(){
		if($.trim($(".username #real_name").val()).length == 0)
		{			
			formError($(".username #real_name"),"真实姓名不为空");
			return false;
		}	
		
		if($.trim($(".idno #idno").val()).length == 0)
		{			
			formError($(".idno #idno"),"身份证号不为空");
			return false;
		}
		
		if(!idcheck($(".idno #idno")))
		{			
			formError($(".idno #idno"),"身份证格式错误");
			return false;
		}	
		else
		{	
			formSuccess($(".idno #idno"),"验证正确");
		}
		
		
		return true;
	});
	

	$("#re_name_and_id .holder_tip").click(function(){
		$(this).hide();
		$(this).parent().find(".f-input").focus();
	});
	$(".register_box .f-input").focus(function(){
		$(this).parent().find(".holder_tip").hide();
	});
	$(".register_box .f-input").blur(function(){
		if($(this).val()==""){
			$(this).parent().find(".holder_tip").show();
		}
	});
	
	$(".idno #idno").bind("blur",function(){
		var obj = $(this);
		if($.trim(obj.val()).length == 0)
		{			
			formError(obj,"身份证号不为空");
		}
		
		if(!idcheck(obj))
		{			
			formError(obj,"身份证格式错误");
		}	
		else
		{	
			formSuccess(obj,"验证正确");
		}
	}); //身份证验证
	
	$(".username #real_name").bind("blur",function(){
		var obj = $(this);
		if($.trim(obj.val()).length == 0)
		{			
			formError(obj,"用户名不为空");
			return false;
		}	
		formSuccess(obj,"验证正确");
		return true;
	}); //用户名验证
	
});
</script>
{include file="inc/footer.html"}